//
//  CommonTools.swift
//  Weibo
//
//  Created by 冯毅 on 16/8/10.
//  Copyright © 2016年 冯毅. All rights reserved.
//

import UIKit
let SwitchRootVCNotification = "SwitchRootVCNotification"

//  当前屏幕的宽度
let ScreenWidth = UIScreen.mainScreen().bounds.size.width

//  当前屏幕的高度
let ScreenHeight = UIScreen.mainScreen().bounds.size.height

func RandomColor() -> UIColor {
    
    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
    
    return UIColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
}